=form_for(@user) do |f| 
  -if @user.errors.any?
    #error_explanation
    %h2
      =pluralize(@user.errors.count, "error") 
      prohibited this user from being saved:
    %ul
    =@user.errors.full_messages.each do |msg| 
      %li
        =msg
  .field
    =f.label :'Имя'
    %br
    =f.text_field :username 
    .field
    = f.label :'Адрес почты'
    %br
    = f.text_field :email 
  .field
    = f.label :'Пароль'
    %br
    = f.password_field :password 
  .field
    = f.label :'Подтверждение пароля'
    %br
    = f.password_field :password_confirmation 
  .actions
    = f.submit :value => 'Создать'
    